<template>
  <el-cascader
    :value="value"
    style="width: 100%"
    :options="options"
    :show-all-levels="false"
    filterable
    :props="{ multiple: true, checkStrictly: false }"
    clearable
    @input="handleInput"
  />
</template>

<script>
export default {
  name: 'Major',
  props: {
    options: {
      type: [Array],
      required: true
    },
    value: {
      type: [Array, String],
      required: true
    }
  },
  methods: {
    handleInput(value) {
      this.$emit('input', value)
    }
  }
}
</script>

<style scoped>

</style>
